package com.example.shop.commodity.service;

import com.example.shop.base.BaseService;
import com.example.shop.commodity.entity.ShopCategorys;
import com.example.shop.commodity.dao.ShopCategorysDao;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hcj
 * @date 2021-09-21 19:06:34
 */
@Service
public class ShopCategorysService extends BaseService<ShopCategorys, ShopCategorysDao> {

    public List<ShopCategorys> findSelect2() {
        ShopCategorys categorys = new ShopCategorys();
        categorys.setStatus("0");
        return super.findList(categorys);
    }

    public ShopCategorys get(String id) {
        return dao.getById(id);
    }
}